<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>智游问答 - 首页</title>
    <link rel="stylesheet" href="lib/css/bootstrap.css">
    <style>
        body{
            padding-top: 60px;
        }
        .navbar-text{
            cursor: pointer;
        }
        .media{
            cursor: pointer;
        }
        .media-body{
            text-align: right;
        }
    </style>
</head>

<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container dropdown">
            <a href="#" class="navbar-brand">智游教育</a>
            <div class="navbar-text pull-right">
                <span id="ask"><span class="glyphicon glyphicon-plus"></span>提问</span>&#x3000;
                <span id="user" class="drop-toggle" data-toggle="dropdown">
                    <span class="glyphicon glyphicon-user"></span>
                    <span>张三</span>
                </span>
                <ul class="dropdown-menu dropdown-menu-right">
                    <li><a class="text-right" href="user.html">个人资料</a></li>
                    <li class="divider"></li>
                    <li><a class="text-right">退出</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <div class="container questions"></div>
    <script id="question-template" type="text/html">
        {{each q c}}
            <img src="/uploads/{{c.petname}}.jpg" onerror="this.src='/images/user.png'">
            <div class="media" question="{{c.time | ms}}">{{c.content}}</div>
            <!-- {{each c.answers a}} -->
            <div class="media-body">{{a.content}}</div>
            <!-- <img src="" alt=""> -->
            <!-- {{/each}} -->
        {{/each}}
    </script>
    <script src="lib/js/jquery.js"></script>
    <script src="lib/js/jquery.cookie.js"></script>
    <script src="lib/js/bootstrap.js"></script>
    <script src="lib/js/template-web.js"></script>
    <script src="scripts/index.js"></script>
</body>

</html>